package com.trkj.pojo;

import java.io.Serializable;
import javax.persistence.*;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.List;


/**
 * The persistent class for the INTERVIEWSTATE database table.
 * 
 */
@Entity
@NamedQuery(name="Interviewstate.findAll", query="SELECT i FROM Interviewstate i")
public class Interviewstate implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="INTERVIEWSTATE_INSTAID_GENERATOR", sequenceName="HR")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="INTERVIEWSTATE_INSTAID_GENERATOR")
	@Column(name="INSTA_ID")
	private long instaId;

	@Column(name="INSTA_NOINTERVIEW")
	private String instaNointerview;

	@Column(name="INSTA_STAY")
	private String instaStay;

	@Column(name="INSTA_UNCONNECTED")
	private String instaUnconnected;

	@Column(name="INSTA_YESINTER")
	private String instaYesinter;

	//bi-directional many-to-one association to Jobseekersmasterdate
	@OneToMany(mappedBy="interviewstate")
	@JSONField(serialize=false)
	private List<Jobseekersmasterdate> jobseekersmasterdates;

	//bi-directional many-to-one association to RecruitAdministration
	@OneToMany(mappedBy="interviewstate")
	@JSONField(serialize=false)
	private List<RecruitAdministration> recruitAdministrations;

	public Interviewstate() {
	}

	public long getInstaId() {
		return this.instaId;
	}

	public void setInstaId(long instaId) {
		this.instaId = instaId;
	}

	public String getInstaNointerview() {
		return this.instaNointerview;
	}

	public void setInstaNointerview(String instaNointerview) {
		this.instaNointerview = instaNointerview;
	}

	public String getInstaStay() {
		return this.instaStay;
	}

	public void setInstaStay(String instaStay) {
		this.instaStay = instaStay;
	}

	public String getInstaUnconnected() {
		return this.instaUnconnected;
	}

	public void setInstaUnconnected(String instaUnconnected) {
		this.instaUnconnected = instaUnconnected;
	}

	public String getInstaYesinter() {
		return this.instaYesinter;
	}

	public void setInstaYesinter(String instaYesinter) {
		this.instaYesinter = instaYesinter;
	}

	public List<Jobseekersmasterdate> getJobseekersmasterdates() {
		return this.jobseekersmasterdates;
	}

	public void setJobseekersmasterdates(List<Jobseekersmasterdate> jobseekersmasterdates) {
		this.jobseekersmasterdates = jobseekersmasterdates;
	}

	public Jobseekersmasterdate addJobseekersmasterdate(Jobseekersmasterdate jobseekersmasterdate) {
		getJobseekersmasterdates().add(jobseekersmasterdate);
		jobseekersmasterdate.setInterviewstate(this);

		return jobseekersmasterdate;
	}

	public Jobseekersmasterdate removeJobseekersmasterdate(Jobseekersmasterdate jobseekersmasterdate) {
		getJobseekersmasterdates().remove(jobseekersmasterdate);
		jobseekersmasterdate.setInterviewstate(null);

		return jobseekersmasterdate;
	}

	public List<RecruitAdministration> getRecruitAdministrations() {
		return this.recruitAdministrations;
	}

	public void setRecruitAdministrations(List<RecruitAdministration> recruitAdministrations) {
		this.recruitAdministrations = recruitAdministrations;
	}

	public RecruitAdministration addRecruitAdministration(RecruitAdministration recruitAdministration) {
		getRecruitAdministrations().add(recruitAdministration);
		recruitAdministration.setInterviewstate(this);

		return recruitAdministration;
	}

	public RecruitAdministration removeRecruitAdministration(RecruitAdministration recruitAdministration) {
		getRecruitAdministrations().remove(recruitAdministration);
		recruitAdministration.setInterviewstate(null);

		return recruitAdministration;
	}

}